package com.dongwu.manager.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.dongwu.common.entity.BaseEntity;
import com.dongwu.security.entity.User;

/**
 * 广告分类
 * 
 * @author xyj
 *
 */
@Entity
@Table(name = "ads_Classify")
public class AdsClassify extends BaseEntity<String> {

	private String name; // 分类名
	private String type;// 0,广告，1，格子铺
	private String image;// 分类图片
	private Integer categoryId; // 分类ID

	private boolean isDel;
	@ManyToOne(cascade = { CascadeType.REFRESH })
	@JoinColumn(name = "userid")
	private User user;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public boolean isDel() {
		return isDel;
	}

	public void setDel(boolean isDel) {
		this.isDel = isDel;
	}

	public Integer getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}
}
